<?php /* Smarty version Smarty-3.1.18, created on 2017-09-05 15:50:23
         compiled from "/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/category.index.html" */ ?>
<?php /*%%SmartyHeaderCode:1820764557597347c0a460d7-85106317%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f7e3f04b9c2fd0e8b98377bc78b810cc3ec75682' => 
    array (
      0 => '/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/category.index.html',
      1 => 1504597173,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1820764557597347c0a460d7-85106317',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_597347c0ac1c18_82308995',
  'variables' => 
  array (
    'data' => 0,
    'g' => 0,
    'e' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_597347c0ac1c18_82308995')) {function content_597347c0ac1c18_82308995($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<body>

<div class="navBar">
	<div class="titleView">分类</div>
</div>

<div class="main-top main-bottom category-index">
	<?php if (count($_smarty_tpl->tpl_vars['data']->value)>0) {?>
	<ul class="tableView">
		<?php  $_smarty_tpl->tpl_vars['g'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['g']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['g']->key => $_smarty_tpl->tpl_vars['g']->value) {
$_smarty_tpl->tpl_vars['g']->_loop = true;
?>
		<section>
			<header class="ge-bottom ge-light"><a href="wap.php?app=goods&act=index&integral=1&category_id=<?php echo $_smarty_tpl->tpl_vars['g']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['g']->value->name;?>
</a></header>
			<li>
				<?php if (count($_smarty_tpl->tpl_vars['g']->value->categories)>0) {?>
				<?php  $_smarty_tpl->tpl_vars['e'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['e']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['g']->value->categories; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['e']->key => $_smarty_tpl->tpl_vars['e']->value) {
$_smarty_tpl->tpl_vars['e']->_loop = true;
?>
				<a href="wap.php?app=goods&act=index&integral=1&category_id=<?php echo $_smarty_tpl->tpl_vars['e']->value->id;?>
&title=<?php echo $_smarty_tpl->tpl_vars['e']->value->name;?>
"><div style="background-image:url(<?php echo $_smarty_tpl->tpl_vars['e']->value->pic;?>
);"></div><span><?php echo $_smarty_tpl->tpl_vars['e']->value->name;?>
</span></a>
				<?php } ?>
				<?php }?>
			</li>
		</section>
		<?php } ?>
	</div>
	<?php }?>
</div>

<div class="footer">
	<a class="ico1" href="wap.php"></a>
	<a class="ico2 this" href="wap.php?app=category&act=index"></a>
	<a class="ico5" href="wap.php?app=member&act=index"></a>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<script>
$(function(){
	$('header').sticky();
});
</script><?php }} ?>
